package com.rjpacket.supernews.app.fragments;

import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Bundle;

import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.rjpacket.supernews.app.Constants;
import com.rjpacket.supernews.app.MainActivity;
import com.rjpacket.supernews.app.R;


public class TutorialJumpFragment extends Fragment implements View.OnClickListener {

    public TutorialJumpFragment() {
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {

        View view = inflater.inflate(R.layout.item_fragment_tutorial_03, container, false);
        View btn = view.findViewById(R.id.tutorial_jump);
        btn.setOnClickListener(this);
        return view;
    }

    @Override
    public void onClick(View view) {
        Intent intent = new Intent(getActivity(), MainActivity.class);
        startActivity(intent);
        getActivity().finish();
    }
}

